<#list fileList as fileItem>
    <#if fileItem.current><#assign file=fileItem /></#if>
    <#if fileItem.fileName?ends_with("entity.java.ftl")><#assign entityFile=fileItem /></#if>
    <#if fileItem.fileName?ends_with("queryCriteria.java.ftl")><#assign criteriaFile=fileItem /></#if>
</#list>
package ${file.packagePath};

import com.baomidou.mybatisplus.extension.service.IService;
import ${entityFile.packagePath}.${tableInfo.className}${entityFile.summary};
import ${criteriaFile.packagePath}.${tableInfo.className}${criteriaFile.summary};

import java.util.*;

public interface ${tableInfo.className}${file.summary} extends IService<${tableInfo.className}${entityFile.summary}> {
    /**
    * 条件查询分页列表
    *
    * @param criteria
    * @return PageR<List<${tableInfo.className}${entityFile.summary}>>
    */
    PageR<List<${tableInfo.className}${entityFile.summary}>> listSearch(${tableInfo.className}${criteriaFile.summary} criteria);

    /**
    * 条件查询全部列表
    *
    * @param criteria
    * @return List<${tableInfo.className}${entityFile.summary}>
    */
    List<${tableInfo.className}${entityFile.summary}> listSearchAll(${tableInfo.className}${criteriaFile.summary} criteria);
}